CC=g++

SOURCES=main.cpp Exception.cpp File.cpp Interpreter.cpp Main.cpp Memory.cpp Parser.cpp
HEADERS=Exception.h File.h Interpreter.h Main.h Memory.h Parser.h
OBJECTS=$(SOURCES:.cpp=.o)

all: bf

bf: $(OBJECTS) 
	$(CC) -o $@ $(OBJECTS) $(LIBS)

$(OBJECTS): %.o: %.cpp $(HEADERS)
	$(CC) -c $< -o $@
	
clean:
	-rm -rf *.o
